fix Wmissing-field-initializers. (#704)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Mon, 15 Mar 2021 13:03:34 +0000 (07:03 -0600)
committerGitHub <noreply@github.com>
Mon, 15 Mar 2021 13:03:34 +0000 (07:03 -0600)
These appear with Qt6 on macos which enables Wextra.

delgpl.cc
jeeps/gpsprot.cc

index c368f9a9217ee08a3f9a61e71f86cc4576ea6519..335584b0bd6b7c9273e36936a691779fd68ef72a 100644 (file)
--- a/delgpl.cc
+++ b/delgpl.cc
@@ -140,7 +140,7 @@ gpl_trackpt(const Waypoint* wpt)
     status = 3;   // a strategic lie for fix_unknown.
   }
 
-  gpl_point_t gp = {0};
+  gpl_point_t gp{};
   le_write32(&gp.status, status);
   le_write_double(&gp.lat, wpt->latitude);
   le_write_double(&gp.lon, wpt->longitude);
index 7df2f0adb9dd69cfe737c61840ef0abae425090c..eaab19df066e780fc4a3069260b8e8e0f568b6d0 100644 (file)
@@ -43,7 +43,7 @@ struct COMMANDDATA COMMAND_ID[2]= {
   ,
   /* Device Command Protocol 2 (A011) */
   {
-    0,4,0,17,8,20,0,21,26,0,0
+    0,4,0,17,8,20,0,21,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
   }
 };